# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH})

get_filename_component(TARGET_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

add_compile_definitions(NODE_GYP_MODULE_NAME=${TARGET_NAME})

add_library(${TARGET_NAME} SHARED 2_function_arguments.c ${CMAKE_CURRENT_SOURCE_DIR}/../common.c ${CMAKE_CURRENT_SOURCE_DIR}/../entry_point.c)
target_link_libraries(${TARGET_NAME} PUBLIC libace_napi.z.so)